<?php

class Eleven_Form_Teacher_Topic extends Zend_Form
{
	public function init()
	{
	    $this->setDisableLoadDefaultDecorators(true);
        $this->setDecorators(array(
            array(
                'ViewScript',
                array('viewScript'=>'teacher/_topic.phtml')
            ),
            'Form'
        ));
		$this->addElement('text', 'title', array(
			'required'		=> true,
			'label'			=> '项目标题：',
		));
		$this->getElement('title')->setDecorators(array(
            'ViewHelper',
 		    'Errors',
        ));
		
		$this->addElement('textarea', 'content', array(
			'required'		=> true,
			'label'			=> '项目内容：',
		));
		$this->getElement('content')->setDecorators(array(
            'ViewHelper',
 		    'Errors',
        ));
		
		$this->addElement('hidden', 'id');
				
		$this->addElement('submit', 'submit', array(
			'ignore'		=> true,
		));
	}

}

?>